<?php
include("valida_sesion.php");
header("Content-Type: text/html; charset=iso-8859-1");
import_request_variables("gP");
$id_user 	= $_SESSION['id_usuario'];
$id_unidad 	= $_SESSION['idunidad'];		
$id_sector 	= $_SESSION['idsector'];	
$id_delegacion = $_SESSION['iddelegacion'];
$id_entidad = $_SESSION['identidad'];
$nUnidad	= $_SESSION['nombreUnidad'];	
$nUsuario	= $_SESSION['nombreUsuario'];		
$nivel		= $_SESSION['perfil'];			
$nEntidad 	= $_SESSION['nEntidad'];
$rol = $_SESSION['rol'];
include('../Lib/php/funciones.php');
include('../Lib/php/conex.php');
$link= conectaSQL("influenza","inf123456","influenza");
include('../Lib/php/fechas.php');
include('matrices.php');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SECRETARIA DE SALUD :: REGISTRO DE INFORMACION</title>
<link href="css/estilos.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript" src="js/reportes.js"></script>
<script type="text/javascript" src="js/prototype.js"></script>
<script src="js/scriptaculous.js" type="text/javascript"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
.Estilo1 {color: #E6E7E9}
-->
</style></head>



<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
        <td height="100%" colspan="4" valign="top"><div align="center"><img src="images/top.jpg" alt="" width="750" height="102" align="baseline" /></div></td>
  </tr>
     <tr bgcolor="" class="datos">
         <td height="20">
		   <?PHP if ($nivel == 1) echo $nUnidad."<!--unidad: $idunidad-->"; ?>	   </td>
       <td  align="right" colspan="3">
		  <?PHP 
		 if ($nivel == 3 and $id_sector==1) { 
				echo "DELEGACION: ".cambiarletras($delegacion); 
		}else if($nivel == 3 and $id_sector==3) { 
				echo "JURISDICCION: ".cambiarletras($nEntidad); 		
			}else{
				echo cambiarletras($nUsuario);			
			}
		?> </td>
   </tr>
      <tr class="datos">
        <td height="23" width='30%'><a href="close_session.php">CERRAR SESI&Oacute;N</a></td>
        <td height="23" width='20%' align="center">&nbsp;</td>
        <td width='20%' align="center"><?php if($_SESSION['perfil'] != 2 and $_SESSION['perfil'] != 6) {?>
        <a href="cambio_clave.php">CAMBIAR CONTRASE&Ntilde;A</a><?php } ?>
        </td>
        <td height="23" width='30%'><div align="right">
          <?php 
		if($_SESSION['perfil'] == 2) { 
		  	echo "<a href='repinfluenza.php'>"; 
		}elseif($_SESSION['perfil'] == 3 ){ 
			echo "<a href='supervisor_menu.php'>"; 		
		}elseif($_SESSION['perfil'] == 4 ){ 
			echo "<a href='menu_lab.php'>"; 		
		}elseif($_SESSION['perfil'] == 5){ 
			echo "<a href='menu_administrador.php'>"; 		
		}
		elseif($_SESSION['perfil'] == 6){ 
			echo "<a href='menu_consultad.php'>"; 		
		}else{
			echo "<a href='home.php'>"; 
		}
		?>
        REGRESAR AL MENU PRINCIPAL</a></div></td>
  </tr>
      <tr>
        <td colspan="4" ></td>
      </tr>
</table>
